package sax;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.SAXException;

public class SaxTest {
	public static void main(String[] args) throws Exception {
		SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
		//向事件源注册handler
//		parser.parse("Customer.xml", new MyDefaultHandler());
		
		parser.parse("books.xml", new BooksHandler());
	}

}
